package com.icedevcloud.auth.controller.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * <p>
 * 登录 ReqDto
 * </p>
 *
 * @author XiaoBingBy
 * @since 2023-04-08
 */
@Schema(name = "登录 ReqDto")
@Data
public class LoginReqDto {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名")
    private String username;

    @Size(min = 5, max = 32, message = "密码长度必须在5-32之间")
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

}
